package com.zerui.manager.openplan.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.openplan.OpenPlan;
import com.zerui.manager.openplan.entity.OpenPlanDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface OpenPlanConvert {

	OpenPlanConvert INSTANCE = Mappers.getMapper(OpenPlanConvert.class);

	OpenPlanDo convertOpenPlanToOpenPlanDo(OpenPlan openPlan);

	OpenPlan convertOpenPlanDoToOpenPlan(OpenPlanDo openPlanDo);

	Page<OpenPlan> convertOpenPlanDoToOpenPlanPage(Page<OpenPlanDo> planDoPage);

}
